import request from '@/utils/request'

// 查询活动等级列表
export function listGrade(query) {
  return request({
    url: '/gxs/grade/list',
    method: 'get',
    params: query
  })
}

// 查询活动等级详细
export function getGrade(gxsGradeId) {
  return request({
    url: '/gxs/grade/' + gxsGradeId,
    method: 'get'
  })
}

// 新增活动等级
export function addGrade(data) {
  return request({
    url: '/gxs/grade',
    method: 'post',
    data: data
  })
}

// 修改活动等级
export function updateGrade(data) {
  return request({
    url: '/gxs/grade',
    method: 'put',
    data: data
  })
}

// 删除活动等级
export function delGrade(gxsGradeId) {
  return request({
    url: '/gxs/grade/' + gxsGradeId,
    method: 'delete'
  })
}
